<%-- 
    Document   : CadChamados
    Created on : 24/04/2011, 17:51:51
    Author     : Josiane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<script>
function validarForm(){
        if (document.cadastro_chamado.nomeSolic.value=="") {
			alert('PREENCHA O NOME!');
			document.cadastro_chamado.nomeSolic.focus();
		}
		
		else if ((document.cadastro_chamado.setor.value=="")) {
			alert('INFORME O SETOR!');
			document.cadastro_chamado.setor.focus();
		}
       
		else if ((document.cadastro_chamado.descricaoProblema.value=="")) {
			alert('PREENCHA A DESCRIÇÃO DO PROBLEMA!');
			document.cadastro_chamado.descricaoProblema.focus();
		}
        
                else {
                    document.cadastro.txtSubmit.value="1";
                    document.cadastro.submit();
                }
           
           
                
        }


</script>



<html>
<head>
      <link href="default.css" rel="stylesheet" type="text/css">
<title>Cadastro de Chamados (FACENSA - LP3)</title>


</head>
<body>

<form name="cadastro_chamado" action="/sign" method="post">
  <table border="0" align="center" width="60%" cellpadding="2" cellspacing="2">
    <tr>
      <td align="center" colspan="2"><b>CADASTRO DE CHAMADOS</b></td>
    </tr>
    <tr>
      <td align="center">&nbsp;</td>
      <td align="center">&nbsp;</td>
    </tr>

    <tr>
      <td align="right"><b>Numero:</b></td>
      <td align="left"><input type="text" name="numeroChamado" maxlength="13" size="20"></td>
     </tr>
    <tr>
      <td align="right" width="30%"><b>Nome do Solicitante:</b></td>
      <td align="left" width="70%"><input type="text" name="nomeSolic" maxlength="60" size="40"></td>
    </tr>
    <tr>
      <td align="right"><b>Setor:</b></td>
      <td align="left"><input type="text" name="setor" size="20" maxlength="10"></td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
      <tr>
      <td align="right"><b>Data/Hora Chamado</b></td>
      <td align="left"><input type="text" name="dataHora" maxlength="10" size="25"></td>
    </tr>

    <tr>
      <td align="right">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td align="right"><b>Descrição do Problema</b></td>
      <td align="left"><textarea name="descricaoProblema" rows="6" cols="40"></textarea></td>
    </tr>
    <tr>
      <td align="right"><b>Descrição da Solução</b></td>
      <td align="left"><textarea name="descricaoSolucao" rows="6" cols="40"></textarea></td>
    </tr>
    <tr>
      <td align="right"><b>Situação do Chamado</b></td>
      <td align="left"><select name="situacaoResolvida">
          <option value="false">Em aberto</option>
          <option value="true">Resolvido</option>
        </select></td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <input type="button" name="btnSalvar" value="Salvar" Onclick="validarForm()">
        &nbsp;
        <input type="button" name="btnVoltar" value="Voltar"></td>
    </tr>

  </table>
</form>
</body>
</html>